﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;

namespace ExtremeSwank.Authentication.OpenID
{
    /// <summary>
    /// Writes tracing information to the current HttpContext.
    /// </summary>
    public static class Tracer
    {
        /// <summary>
        /// Writes a message to the current TraceContext.
        /// </summary>
        /// <param name="message">Message to write.</param>
        public static void Write(string message)
        {
            HttpContext.Current.Trace.Write("openid", message);
        }
        /// <summary>
        /// Writes a warning to the current TraceContext.
        /// </summary>
        /// <param name="message">Warning to write.</param>
        public static void Warn(string message)
        {
            HttpContext.Current.Trace.Warn("openid", message);
        }
    }
}
